<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<form method="post" id="add_form" class="form-horizontal js-ajax-form margin-top-20" action="{:url('company/versions_add')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>版本名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="name" placeholder="请填写版本名称" required value="{$data.name|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-app" class="col-sm-2 control-label"><span class="form-required">*</span>价格</label>
				<div class="col-md-6 col-sm-10">
					<input type="number" class="form-control" id="input-price" name="price" placeholder="请填写价格" value="{$data.price|default=0}" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>备注</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-remark" name="remark" placeholder="备注信息" value="{$data.remark|default=''}">
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		var callback = function(){
			let formData = $('#add_form').serializeArray();
			var temp = {};
			$.each( formData , function( i  , obj ){
				temp[ obj.name ] = obj.value;
			});
			return temp;
		}
	</script>
</body>
</html>